package com.learn.gof.afp;

public class Test {

    public static void main(String[] args) {
        PayFactory factory = new AliPayFactory();
        IPay iPay = factory.choosePayFun();
        iPay.pay();
        iPay.refund();
    }
}
